package com.metagurukul.informer.valueObjects;
import java.sql.*;

/**
 * This class is mapped with database table answers
 */

public class Answers{
	private int id;
	private String answer;
	private boolean approved;
	private String user_id;
	private int question_id;
	private Date posted;
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public String getAnswer() {
		return answer;
	}
	
	public Answers(int id, String answer, boolean approved, String user_id,
			int question_id, Date posted) {
		super();
		this.id = id;
		this.answer = answer;
		this.approved = approved;
		this.user_id = user_id;
		this.question_id = question_id;
		this.posted = posted;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_id() {
		return user_id;
	}
	public void setQuestion_id(int question_id) {
		this.question_id = question_id;
	}
	public int getQuestion_id() {
		return question_id;
	}
	public void setPosted(Date posted) {
		this.posted = posted;
	}
	public Date getPosted() {
		return posted;
	}
	public void setApproved(boolean approved) {
		this.approved = approved;
	}
	public boolean isApproved() {
		return approved;
	}
}